]> dgit.raspbian.org Git - gnome-shell.git/commit
swipeTracker: Handle invalid position when finding previous point
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 4 Feb 2026 13:12:25 +0000 (14:12 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 4 Feb 2026 16:28:12 +0000 (17:28 +0100)
commiteb9caf0028be0d5740fc419e7e865584c0f52cab
treefac2611d7c9182d09e4b327665d71c6d25b36f46
parent23e3e7970f1ef316c0a5bce2dea4872cf1ca5750
swipeTracker: Handle invalid position when finding previous point

Commit 8e29babca8adc677 switched to `findLastIndex()` to find
the previous point, which inadvertently changed what value is
returned for invalid input.

Restore the old fallback value and log a stacktrace, so we can
hopefully track down what causes the invalid input.

Related: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8856
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/4062>
js/ui/swipeTracker.js